<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/sectionparent.css" />
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/admin.css" />
<link type="text/css" rel="stylesheet"
	href="${ctx}/css/dlifestyle/table.css" />
<script
	src="${ctx}/js/controllers/base/ownerinfo/OwnerinfoDetailController.js"
	type="text/javascript"></script>
<script type="text/javascript">
		//返回上一页
		function cancel(state){
			switch (state) {
			case 1:
			case 4:
				loadContent("/ownerinfo/newOwnerInfoList");
				break;
			case 2:
			case 3:
				loadContent("/ownerinfo/ownerInfoList");
				break;
			default:
				break;
			}
		}
</script>
<section>
	<div style="height: 40px; line-height: 40px;">
		<div class="forword_area"></div>
		<div class="location">当前位置：${sessionScope.currcent_position}</div>
	</div>
	<hr>
	<div class="panel panel-default" style="height:auto">
		<div class="editTitle">
			<div style="height: 41px; width: 190px; float: left;">
				<img style="float: left; margin-left: 37px; margin-top: 9.5px;"
					src="/manage/images/new_edit.png">
				<h4>业主信息详情</h4>
			</div>
			<div>
				<a style="float: right; margin-right: 20px; margin-top: -2px;"
					title="关闭" onclick="cancel('${ownerInfo.state}');"><img
					src="${ctx}/images/new_close.png" /></a>
			</div>
		</div>
		<div id="replyList" class="right"
			style="height: 150px; margin-top: -10px;">
			<div class="modal-header">
				<div id="form" class="form"
					style="min-height: 50px; margin-top: 10px; border-top: 1px solid #edeef3; font-size: 14px;">
					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">姓名：</span>
						<div class="fldetail-4l">${ownerInfo.name }</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">头像：</span>
						<div class="fldetail-4r">${ownerInfo.logo }</div>
					</div>

					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">电话：</span>
						<div class="fldetail-4l">${ownerInfo.phone }</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">邮箱：</span>
						<div class="fldetail-4r">${ownerInfo.email }</div>
					</div>

					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">状态：</span>
						<div class="fldetail-4l">
							<c:choose>
								<c:when test="${ownerInfo.state == 1}">新注册</c:when>
								<c:when test="${ownerInfo.state == 2}">正常</c:when>
								<c:when test="${ownerInfo.state == 3}">禁用</c:when>
								<c:when test="${ownerInfo.state == 4}">审核未通过</c:when>
								<c:otherwise>
								</c:otherwise>
							</c:choose>
						</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">积分：</span>
						<div class="fldetail-4r">${ownerInfo.integral }</div>
					</div>

					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">登录账户：</span>
						<div class="fldetail-4l">${ownerInfo.account }</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">登录次数：</span>
						<div class="fldetail-4r">${ownerInfo.loginTimes }</div>
					</div>

					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">注册时间：</span>
						<div class="fldetail-4l">
							<fmt:formatDate value="${ownerInfo.createTime}" type="date"
								pattern="yyyy年MM月dd日 HH:mm:ss"></fmt:formatDate>
						</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">上次登录时间：</span>
						<div class="fldetail-4r">
							<fmt:formatDate value="${ownerInfo.lastLoginTime}" type="date"
								pattern="yyyy年MM月dd日 HH:mm:ss"></fmt:formatDate>
						</div>
					</div>
				</div>
			</div>

			<div style="text-align: center;">
				<button style="margin-top: 20px;" class="buttonCancle"
					onclick="cancel('${ownerInfo.state}');">返&nbsp;&nbsp;回</button>
			</div>
			<div style="float: left; padding-left: 1%;">
				<button style="margin-top: 20px;" class="buttonEdit"
					onclick="resetpassword('${ownerInfo.id}','${ownerInfo.account}');">重置密码</button>
			</div>
		</div>
	</div>
	<%@include file="/views/common/footer.jsp"%>
</section>
<script type="text/javascript">
	var ctx = '${ctx}';
	setCtx(ctx);
</script>
